<script>
export default {
	onLaunch: function() {
		console.log('App Launch');
	},
	onShow: function() {
		// setTimeout(()=>{
		// 	// #ifdef APP-PLUS 
		// 	plus.navigator.closeSplashscreen()
		// 	// #endif
		// }, 2000)

		let IsLogin =  uni.getStorageSync("token");
		if(!IsLogin){
			uni.reLaunch({
				url:"pages/public/login",
				success() {
					// #ifdef APP-PLUS
						plus.navigator.closeSplashscreen()
					// #endif
				}
			})
		}else{
		// #ifdef APP-PLUS
			plus.navigator.closeSplashscreen()
		// #endif
		}
	},
	onHide: function() {
		console.log('App Hide');
	}
};
</script>
<style>
	@import "@/static/css/productDet.css";
	@import "@/static/css/pupop.css";
</style>

<style>
view, text {
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.content {
	width: 100%;
	padding: 0 30rpx;
}
.text-center {
	text-align: center;
}
.red{
	color: red;
}
.clearfix:after,.clearfix:before{
  content: "";
  display: table;
}
.clearfix:after{
  clear: both;
}
.clearfix{
  *zoom: 1;
}
button::after{
	border: unset;
}
/* 解决头条小程序组件内引入字体不生效的问题 */
/* #ifdef MP-TOUTIAO */
@font-face {
	font-family: uniicons;
	src: url('/static/uni.ttf');
}
/* #endif */
</style>
